<?php 

class Event_SpamPreDelete extends Crud_Event_Handler 
{
	protected $_type = 'preDelete';
	
	/**
	 * Run handler with options array.
	 * 
	 * @param OrdersRow $row
	 * @return void
	 */
	public function run($row)
	{
		
		
		$filters_all = $this->_getParam('filters_all');
		$oldFiltersRows = SpamFilterPeer::getInstance()->findByIdSpam($row->getId());
		foreach($oldFiltersRows as $oFR)
			$oFR->delete();
		
		
	}

}
